-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making website logo clickable. #123
Conversation
…ill be land on the homepage of the website.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to Our repository.🎊 Thank you so much for taking the time to point this out.
Hi @Narendra9906 |
client/src/components/logo/logo.tsx
Outdated
</Typography> | ||
</Typography> | ||
</a> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

I removed the space. Please check it. If it’s okay, then I will have to send you another pull request.
import React, { FC } from 'react'
import { Box, Typography } from '@mui/material'
interface Props {
onClick?: () => void
variant?: 'primary' | 'secondary'
}
const Logo: FC = ({ variant }) => {
return (
<a href="https://www.bigohhh.com/" style={{ textDecoration: 'none' }}>
<Typography
variant="h4"
component="h1"
sx={{ fontWeight: 700, '& span': { color: variant === 'primary' ? 'primary.main' : 'unset' } }}
>
BigOhhh
)
}
Logo.defaultProps = {
variant: 'primary',
}
export default Logo
Pull Request Details #73
Description
Making website logo clickable. Whenever user click on the logo they will be land on the Home page of the website.
[Provide a brief overview of the changes introduced by this pull request.]
In this update, the functionality of the website logo has been enhanced to improve user navigation.
The changes were made in logo component. Inside logo.tsx file the Topography component, which renders the logo, has been wrapped in the anchor tag. The href attribute of the anchor tag has been set to "https://www.bigohhh.com/", which is the url of the homepage. This means when user clicks on the logo they will be redirected to the hompage.
Please note that the onCLick prop as its related to inrtergace declaration have been removed from the Logo component as they are no longer needed. This is a non-breaking chnages as it adds functionality in a backwards-compatible manner, as it does not affect any existing behaviour of the Logo Component.
Fixes
[Cite any related issues or bugs that this PR addresses, e.g., "Fixes #123"]
Type of PR
Screenshots (if applicable)
[If your changes include UI updates, provide screenshots to illustrate the changes.]
Additional Notes
[Include any additional information or context that might be helpful for reviewers.]
Checklist